import request from '@/utils/request'

// 获取列表
export function accountGetList(pd) {
  return request({
    url: '/fms/account/getList',
    method: 'get',
    params: pd
  })
}

// 获取条数
export function accountGetCount(pd) {
  return request({
    url: '/fms/account/getCount',
    method: 'get',
    params: pd
  })
}

// 新增
export function accountAdd(data) {
  return request({
    url: '/fms/account',
    method: 'post',
    data: data
  })
}

// 修改
export function accountEdit(pd) {
  return request({
    url: '/fms/account',
    method: 'put',
    data: pd
  })
}

// 执行财务单据，修改余额
export function accountEditForBillExec(pd) {
  return request({
    url: '/fms/account/editForBillExec',
    method: 'put',
    data: pd
  })
}

// 删除参数配置
export function accountDel(id) {
  return request({
    url: '/fms/account/id/' + id,
    method: 'delete'
  })
}